MenuItemSetCheck

 

Change the check status of the menu item given in the main menu.

 

void @MenuItemSetCheck(object menuitem, int check);

 

Parameter

object menuitem : Menu item

int check : 0-unchek, 1-check

 

Return Value

None

 

Example

menuitem = @MenuItemFindByTitle("Graphic (&G)");
@MenuItemSetTextColor(menuitem, @RGB(255, 0, 0));
@MenuItemSetBackColor(menuitem, @RGB(0, 255, 0));
@MenuItemSetCheck(menuitem, 1);

 

Description : Find a menu item with the name "Graphic (& G)" and change the red background color to green and check the menu.

 

Version Information

Initial Support: 10.2.7

 

Related Helps

@TestGraphAddTag()

@TestGraphClear()

@TestGraphClearData()

@TestGraphGetValue()

@TestGraphRun()

@TestGraphSetData()

@TestGraphSetDataSize()

@TestGraphSetMilliLast()

@TestGraphSetValue()

@TestGraphStop()